{% extends 'base.html' %}
{% block content %}

{% if user.is_staff %}

    {% if file_list %}
        <ul>
        {% for string in file_list %}
            <li><a href="/files/{{ string }}">{{ string }}</a></li>
        {% endfor %}
        </ul>
    {% endif %}
    <H1> New Post </H1>
    <form action="." method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{ form.as_p }}
    <input type="submit" value="Submit" />
    
    </form>
{% else %}
	You should not be here
{% endif %}

{% endblock %}